<template>
  <div class="login">
    <el-form ref="form" :model="form" :rules="rules" label-width="80px" style="background-color: white;padding: 20px">
      <el-form-item label="">
        <div><h3>我要评价</h3></div>
      </el-form-item>
      <el-form-item label="老师姓名" prop="teacherName">
        <el-input v-model="form.teacherName" />
      </el-form-item>
      <el-form-item label="学生姓名" prop="studentId">
        <el-input v-model="form.studentId" />
      </el-form-item>
      <el-form-item label="处理时间" prop="studentName">
        <el-input v-model="form.studentName" />
      </el-form-item>
      <el-form-item label="问题类型" prop="studentName">
        <el-input v-model="form.studentName" />
      </el-form-item>
      <el-form-item label="">
        <div class="block">
          <el-rate v-model="value1"></el-rate>
        </div>
      </el-form-item>
      <el-form-item label="备注" prop="notes">
        <el-input type="textarea" v-model="form.notes" placeholder="请输入备注" />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import { getClass,pull,listQuestion_type,reservation_submit } from "@/api/helpInterview";
import Cookies from "js-cookie";
import { encrypt, decrypt } from '@/utils/jsencrypt'

export default {
  name: "HelpInterview",
  data() {
    return {
      value1: null,
      //查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        questionType: null
      },
      //问题分类表格数据
      question_typeList:[],
      options:[],
      reservationForm:{

      },
      form: {
        realName: null,
        startTime: null,
        companyName: null,
        notes: null,
      },
    };
  },
  methods: {
    getStudentClass(){
      // getClass.then(res=>{
      //   console.log(res)
      //   this.options = res.data();
      // })
    },
    submitForm(){
      pull(this.lnterviewForm).then(res=>{

      })
    },
    getQuaryList(){
      this.loading = true;
      listQuestion_type(this.queryParams).then(res=>{
        console.log(res)
        this.question_typeList = res.rows;
        this.total = res.total;
        this.loading = false;
      })
    },
    reservation(){
      // this.$refs["lnterviewForm"].validate(valid => {
      //   if (valid) {
      //     if (this.form.id != null) {
            pull(this.lnterviewForm).then(res => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            })
      //     }
      //   }
      // });
    }

  },
  mounted() {
    this.getStudentClass();
    this.getQuaryList();
  }
};
</script>

<style rel="stylesheet/scss" lang="scss">
.login {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background-image: url("../assets/images/login-background.jpg");
  background-size: cover;
}
.title {
  margin: 0px auto 30px auto;
  text-align: center;
  color: #707070;
}

.login-form {
  border-radius: 6px;
  background: #ffffff;
  width: 400px;
  padding: 25px 25px 5px 25px;
  .el-input {
    height: 38px;
    input {
      height: 38px;
    }
  }
  .input-icon {
    height: 39px;
    width: 14px;
    margin-left: 2px;
  }
}
.login-tip {
  font-size: 13px;
  text-align: center;
  color: #bfbfbf;
}
.login-code {
  width: 33%;
  height: 38px;
  float: right;
  img {
    cursor: pointer;
    vertical-align: middle;
  }
}
.el-login-footer {
  height: 40px;
  line-height: 40px;
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-family: Arial;
  font-size: 12px;
  letter-spacing: 1px;
}
.login-code-img {
  height: 38px;
}
</style>
